package sjtu.rfid.rri.services.leaf;

import javax.jws.WebService;


/**
 * The operation interface of Bundle
 * 
 * @author jinghao
 * 
 */
@WebService
public interface BundleOperation {

	/**
	 * Add a new OSGi Bundle Repository Address
	 * 
	 * @param url
	 *            the url of OBR
	 * @throws OperationException
	 *             if the operation failed to complete
	 */
	public void addOBRAddress(String url) throws OperationException;

	/**
	 * set whether to use OBR when resolving bundles
	 * 
	 * @param use
	 *            whether to use OBR when resolving bundles
	 * @throws OperationException
	 *             if the operation failed to complete
	 */
	public void useOBR(boolean use) throws OperationException;

}
